package com.mapper;

import com.pojo.Fm_x;
import org.apache.ibatis.annotations.*;

import java.util.List;
@Mapper
public interface FmMapper_x {
    @Select("select * from fm_x")
    public List<Fm_x> selectAll();

    @Insert("insert into fm_x (title,img,del) values (#{title},#{img},#{del})")
    Integer add(Fm_x fmX);
    @Update("update fm_x set title=#{title},img=#{img},del=#{del} where id=#{id}")
    Integer update(Fm_x fmX);
    @Delete("delete from fm_x where id=#{id}")
    Integer delete(Integer id);
    public List<Fm_x> select(@Param("id") Integer id, @Param("title") String title);
}
